package com.luanqibazao;

public class TestConvert {
    public static void main(String arg[]){
        int i1=123;
        int i2=456;
        double d1 =(i1+i2)*1.2;
        float f1=(float)((i1+i2)*1.2);
        byte b1=1;
        byte b2=2;
        byte b3=(byte)(b1+b2);

        double d2=1e200;
        float f2=(float)d2;
        System.out.println(b3);

        float f3=1.23f;
        long l1=123;
        long l2=3000000000L;
        float f=l2+l2+f3;
        long l=(long)f; //将小数部分砍掉显示整数

    }
}
